﻿using System;
using System.Collections.Generic;
using System.Data;
using nkstdgia.common.ThamDinhGia.BusinessObjects;
using nkstdgia.common.ThamDinhGia.DataAccess;

namespace nkstdgia.common.ThamDinhGia.BusinessLogic
{
    public class HO_SO_THAM_DINHBL
    {
        #region ***** Init Methods *****

        HO_SO_THAM_DINHDA objHO_SO_THAM_DINHDA;

        public HO_SO_THAM_DINHBL()
        {
            objHO_SO_THAM_DINHDA = new HO_SO_THAM_DINHDA();
        }

        #endregion ***** Init Methods *****

        #region ***** Get Methods *****

        /// <summary>
        /// Get HO_SO_THAM_DINH by ma_ho_so
        /// </summary>
        /// <param name="ma_ho_so">MA_HO_SO</param>
        /// <returns>HO_SO_THAM_DINH</returns>
        public HO_SO_THAM_DINH GetByMA_HO_SO(Int64 ma_ho_so)
        {
            return objHO_SO_THAM_DINHDA.GetByMA_HO_SO(ma_ho_so);
        }

        /// <summary>
        /// Get all of HO_SO_THAM_DINH
        /// </summary>
        /// <returns>List<<HO_SO_THAM_DINH>></returns>
        public List<HO_SO_THAM_DINH> GetList()
        {
            return objHO_SO_THAM_DINHDA.GetList();
        }

        /// <summary>
        /// Get DataSet of HO_SO_THAM_DINH
        /// </summary>
        /// <returns>DataSet</returns>
        public DataSet GetDataSet()
        {
            return objHO_SO_THAM_DINHDA.GetDataSet();
        }

        /// <summary>
        /// Get all of HO_SO_THAM_DINH paged
        /// </summary>
        /// <param name="recperpage">recperpage</param>
        /// <param name="pageindex">pageindex</param>
        /// <returns>List<<HO_SO_THAM_DINH>></returns>
        public List<HO_SO_THAM_DINH> GetListPaged(int recperpage, int pageindex)
        {
            return objHO_SO_THAM_DINHDA.GetListPaged(recperpage, pageindex);
        }

        /// <summary>
        /// Get DataSet of HO_SO_THAM_DINH paged
        /// </summary>
        /// <param name="recperpage">recperpage</param>
        /// <param name="pageindex">pageindex</param>
        /// <returns>DataSet</returns>
        public DataSet GetDataSetPaged(int recperpage, int pageindex)
        {
            return objHO_SO_THAM_DINHDA.GetDataSetPaged(recperpage, pageindex);
        }

        #endregion ***** Get Methods *****

        #region ***** Add Update Delete Methods *****

        /// <summary>
        /// Add a new HO_SO_THAM_DINH within HO_SO_THAM_DINH database table
        /// </summary>
        /// <param name="obj_ho_so_tham_dinh">HO_SO_THAM_DINH</param>
        /// <returns>key of table</returns>
        public long Add(HO_SO_THAM_DINH obj_ho_so_tham_dinh)
        {
            return objHO_SO_THAM_DINHDA.Add(obj_ho_so_tham_dinh);
        }

        /// <summary>
        /// updates the specified HO_SO_THAM_DINH
        /// </summary>
        /// <param name="obj_ho_so_tham_dinh">HO_SO_THAM_DINH</param>
        /// <returns></returns>
        public void Update(HO_SO_THAM_DINH obj_ho_so_tham_dinh)
        {
            objHO_SO_THAM_DINHDA.Update(obj_ho_so_tham_dinh);
        }

        /// <summary>
        /// Delete the specified HO_SO_THAM_DINH
        /// </summary>
        /// <param name="ma_ho_so">MA_HO_SO</param>
        /// <returns></returns>
        public void Delete(Int64 ma_ho_so)
        {
            objHO_SO_THAM_DINHDA.Delete(ma_ho_so);
        }

        #endregion ***** Add Update Delete Methods *****
    }
}